Action hook 'rest_delete_{$this->taxonomy}'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php at line 796

Description

Fires after a single term is deleted via the REST API. The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. Possible hook names include: - `rest_delete_category` - `rest_delete_post_tag`

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 796
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php 398

Parameters

Type Name Description
WP_Term $term The deleted term.
WP_REST_Response $response The response data.
WP_REST_Request $request The request sent to the API.

PHP Doc

/**
		 * Fires after a single term is deleted via the REST API.
		 *
		 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `rest_delete_category`
		 *  - `rest_delete_post_tag`
		 *
		 * @since 4.7.0
		 *
		 * @param WP_Term          $term     The deleted term.
		 * @param WP_REST_Response $response The response data.
		 * @param WP_REST_Request  $request  The request sent to the API.
		 */